package com.sky.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * Category对应的值对象
 *
 * @Author mr.zhang
 * Date 2025/5/20 20:05
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "Category对应的值对象")
public class CategoryVo {
    private Long id;

    //类型: 1菜品分类 2套餐分类
    @ApiModelProperty(value = "套餐类型,1是菜品分类,2是套餐分类")
    private Integer type;

    //分类名称
    @ApiModelProperty(value = "分类名称")
    private String name;

    //顺序
    @ApiModelProperty(value = "顺序")
    private Integer sort;

    //分类状态 0标识禁用 1表示启用
    @ApiModelProperty(value = "分类状态 0标识禁用 1表示启用")
    private Integer status;

    //创建时间
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    //更新时间
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    //创建人
    @ApiModelProperty(value = "创建人")
    private Long createUser;

    //修改人
    @ApiModelProperty(value = "修改人")
    private Long updateUser;
}
